<ion-view>
  <ion-content style="padding:15px;" ng-init="uploadWechatImg()">
  <p>上传图片素材</p>
	<form id="media" action="https://api.weixin.qq.com/cgi-bin/media/uploadimg?access_token=9_htUKJ34zXBqfpHQqxxk-yVTqCKrHTgPfejavs1aHK07__i5g7DoSk8O7caB2aBkTX_fnP0nSfzQBNOvm7lap4fa289wYaoFQvcB5jmM-nVOy807psSLRavu20UuM7KbWxVoK6UwhpKSe31eTZTBiAFADXF" method="post" enctype="multipart/form-data" name="media">
	    <input type="file" name="media">
	    <input type="submit" name="Submit1" value="提交" class="btn">
	</form>
	<br />
	<div class="mb20"><button class="btn" ng-click="create_card('student')">创建学生会员卡</button></div>
	<div class="mb20"><button class="btn" ng-click="create_card('adult')">创建成人会员卡</button></div>
	<div class="mb20"><button class="btn" ng-click="create_card('family')">创建家庭会员卡</button></div>

	<input type="text" name="" ng-model="cardId" style="border:1px solid #ccc;" placeholder="输入要删除的会员卡code码">
	<div class="mb20"><button class="btn" ng-click="delete_card(cardId)">删除会员卡</button></div>

	<input type="text" name="" ng-model="editcard.cardId" style="border:1px solid #ccc;" placeholder="输入要修改的会员卡code码">
	<textarea placeholder="输入要修改的会员卡特权说明,prerogative字段" ng-model="editcard.prerogative" style="border:1px solid #ccc;height: 100px;padding: 5px;font-size: 14px;"></textarea>
	<div class="mt20 mb20"><button class="btn" ng-click="edit_card()">修改会员卡说明</button></div>

	<input type="text" name="" ng-model="new_vip.phone" style="border:1px solid #ccc;" placeholder="输入要添加的会员手机">
	<input type="text" name="" ng-model="new_vip.type" style="border:1px solid #ccc;" placeholder="输入会员种类（1：学生卡，2：成人卡，3：家庭卡）">
	<div class="mt20 mb20"><button class="btn" ng-click="add_vipmember()">添加会员</button></div>

  </ion-content>

</ion-view>